/**
 * 
 */
package pt.mleiria.sAction.utils;

import java.io.ObjectStreamException;
import java.io.Serializable;
import java.util.Locale;
import java.util.ResourceBundle;

/**
 * @author Manuel
 *
 */
public class LocalMessagesConfig implements Serializable{
	
	private static final long serialVersionUID = 1L;
	private static final String RESOURCE_BUNDLE = "messages";
	private static LocalMessagesConfig localMessagesConfig;
	public static LocalMessagesConfig getInstance(){
		if(localMessagesConfig == null)
			localMessagesConfig = new LocalMessagesConfig();
		return localMessagesConfig;
	}
	private ResourceBundle resourceBundle;
	private LocalMessagesConfig(){
		resourceBundle = ResourceBundle.getBundle(RESOURCE_BUNDLE, new Locale("pt", "PT"));
	}
	private Object readResolve () throws ObjectStreamException{
		return localMessagesConfig;
	}
	//Variaveis no ResourceBundle
	
	
	
}
